<template>
  <div class="car-bind" id="car-bind">
    <van-sticky>
      <van-nav-bar title="车辆绑定" left-arrow @click-left="onClickLeft" />
    </van-sticky>

    <div class="car-kind">
      <div>
        <span>号牌种类</span>
        <div class="the-right">
          <span>小型汽车</span>
          <i class="iconfont icon-icon-test"></i>
        </div>
      </div>

      <div>
        <span>号牌号码</span>
        <div>
          <div class="chooceK">
              <span>川</span>
              <i class="iconfont icon-down"></i>
          </div>
          <van-field v-model="value" placeholder="请输入号牌号码" :style="{width:'140px'}"/>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
        value:''
    };
  },
  methods: {
    onClickLeft() {
      this.$router.go(-1);
    },
  },
  //请求数据
  created() {},
};
</script>

<style scoped lang ='less' >
.car-bind {
  width: 100vw;
  min-height: 100vh;
  background-color: #f2f2f2;
  .car-kind {
    height: 102px;
    margin: 20px;
    background-color: #ffffff;
    border-radius: 10px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    & > div:nth-child(1) {
      margin-bottom: 20px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      & > span {
        flex: 2;
      }
      .the-right {
        flex: 3;
        display: flex;
        justify-content: space-between;
      }
    }
    & > div:nth-child(2) {
      display: flex;
      justify-content: space-between;
      align-items: center;
      & > span {
        flex: 2;
      }
      & > div {
        flex: 3;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        .chooceK{
            width: 40px;
            height: 26px;
            line-height: 26px;
            text-align: center;
            color: #ffffff;
            background-image: linear-gradient(to bottom, #007BF5, #00A1F9);
            border-radius: 5px;
            margin-right: 5px;
        }
      }
    }
  }
}

#car-bind .van-cell{
    padding: 10px;
}
</style>
